package com.dd.ms.log.web.service.internal;

import com.dd.ms.log.web.pojo.LogEntryESDO;
import com.dd.ms.log.web.repository.LogEntryRepository;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Service;

/**
 * @Author liuxianmeng
 * @CreateTime 2025/6/28 14:50
 * @Description Elasticsearch存储服务
 */
@Slf4j
@Service
@RequiredArgsConstructor
public class ElasticService {

    private final LogEntryRepository logEntryRepository;

    public LogEntryESDO add(LogEntryESDO logEntryESDO) {
        return logEntryRepository.save(logEntryESDO);
    }
}